// Learn cc.Class:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},
    init(gameCtl){
        this.gameCtl=gameCtl;
        this.timer=0;
        // this.gameCtl.foeWrap.removeAllChildren();
        this.gameCtl.armsWrap.removeAllChildren();
        this.minRand=0.3;//随机生成敌人的最小秒数
        this.maxRand=1;//随机生成敌人的最大秒数
        this.randFoeTime=Math.random()*this.maxRand+this.minRand;//随机时间
        // console.log("随机生成敌人的时间",this.randFoeTime)
    },
});
